function columns(vm) {
  const cols = [
    {
      title: '序号',
      dataIndex: '序号',
      width: 60,
      align: 'center',
      customRender: function (t, r, index) {
        return parseInt(index) + 1
      }
    },
    {
      title: '计划编号',
      align: 'center',
      dataIndex: 'planNo',
    },
    {
      title: '计划名称',
      align: 'center',
      dataIndex: 'planName',
    },
    {
      title: '阶段',
      align: 'center',
      dataIndex: 'stage',
      customRender: (text, record, index) => {
        let cases = {
          '0': '计划',
          '1': '实施',
          '2': '汇总',
          '3': '归档封存',
        }
        return cases[text]
      }
    },

    {
      title:'操作',
      dataIndex: 'action',
      align: 'center',
      slots: {title: 'actionName'},
      scopedSlots: {customRender: 'action'}
    },
    {
      title:'确认结束',
      dataIndex: 'confirmEnd',
      align: 'center',
      slots: {title: 'confirmEnd'},
      scopedSlots: {customRender: 'confirmEnd'}
    }
  ]
  return cols
}

export default columns